import Loadable from 'react-loadable'
import {Spin} from 'antd'
export default function loadable(WrapperComponent:()=>Promise<any>){
    return Loadable({
      loader:WrapperComponent,
      loading:()=><Spin/>
    })
}